package cn.kgc.car.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户类
 */
public class User implements Serializable {
    private String name;//用户名
    private String pwd; //密码
    private Car car;    //租车信息
    public User() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public Car getCar() {
        return car;
    }

    public void setCar(Car car) {
        this.car = car;
    }

    public User(String name, String pwd) {
        this.name = name;
        this.pwd = pwd;
        this.car=new Car(0,null,null,null,0,new Date());
    }
}
